<template>
  <div class="overview">
    <div class="overview-title">
      <span>{{ props.title }}</span>
    </div>
    <div class="overview-content">
      展示组件
    </div>
  </div>
</template>


<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: ''
  }
})

</script>
<style scoped>
.overview {
  border-radius: 3px;
  border: 0.0625rem solid var(--border-color);
}

.overview:hover {
  box-shadow: 0 0 5px #ccc;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.overview-title {
  font-size: 24px;
  font-weight: bold;
  padding: 10px;
  border-radius: 3px 3px 0 0;
  border-bottom: 0.0625rem solid var(--border-color);
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-title:hover span {
  animation: dounce 2s infinite;
}

@keyframes dounce {
  0% {
    transform: scale(1) rotate(-2deg);
  }

  25% {
    transform: scale(1.05) rotate(0deg);
  }

  50% {
    transform: scale(1) rotate(2deg);
  }

  75% {
    transform: scale(1.05) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(-2deg);
  }
}

.overview-content {
  background-color: var(--bg-color);
}
</style>
